PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Sparkle / Explosions / LuxXx - Be Afraid ii.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=2 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=0.929 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=0 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=1 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=1 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=100.000 |
| 26 | fWaveScale=28.599 |
| 27 | fWaveSmoothing=0.500 |
| 28 | fWaveParam=-1.000 |
| 29 | fModWaveAlphaStart=0.400 |
| 30 | fModWaveAlphaEnd=1.000 |
| 31 | fWarpAnimSpeed=0.037 |
| 32 | fWarpScale=0.015 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=1.00000 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.03300 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=1.000 |
| 45 | wave_g=1.000 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.000 |
| 55 | ib_r=0.000 |
| 56 | ib_g=0.000 |
| 57 | ib_b=0.000 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=12.000 |
| 60 | nMotionVectorsY=9.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.500 |
| 64 | mv_r=0.000 |
| 65 | mv_g=0.000 |
| 66 | mv_b=0.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=256 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=20.35074 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_frame1=r=r+0.5*sin(treb*1.13); |
| 89 | wave_0_per_frame2=g=g+0.5*sin(bass*1.33); |
| 90 | wave_0_per_frame3=b=b+0.5*sin(mid*1.23); |
| 91 | wavecode_1_enabled=0 |
| 92 | wavecode_1_samples=512 |
| 93 | wavecode_1_sep=256 |
| 94 | wavecode_1_bSpectrum=0 |
| 95 | wavecode_1_bUseDots=1 |
| 96 | wavecode_1_bDrawThick=0 |
| 97 | wavecode_1_bAdditive=0 |
| 98 | wavecode_1_scaling=100.00000 |
| 99 | wavecode_1_smoothing=0.50000 |
| 100 | wavecode_1_r=1.000 |
| 101 | wavecode_1_g=1.000 |
| 102 | wavecode_1_b=1.000 |
| 103 | wavecode_1_a=1.000 |
| 104 | wavecode_2_enabled=0 |
| 105 | wavecode_2_samples=512 |
| 106 | wavecode_2_sep=0 |
| 107 | wavecode_2_bSpectrum=0 |
| 108 | wavecode_2_bUseDots=0 |
| 109 | wavecode_2_bDrawThick=0 |
| 110 | wavecode_2_bAdditive=0 |
| 111 | wavecode_2_scaling=1.00000 |
| 112 | wavecode_2_smoothing=0.50000 |
| 113 | wavecode_2_r=1.000 |
| 114 | wavecode_2_g=1.000 |
| 115 | wavecode_2_b=1.000 |
| 116 | wavecode_2_a=1.000 |
| 117 | wavecode_3_enabled=0 |
| 118 | wavecode_3_samples=512 |
| 119 | wavecode_3_sep=0 |
| 120 | wavecode_3_bSpectrum=0 |
| 121 | wavecode_3_bUseDots=0 |
| 122 | wavecode_3_bDrawThick=0 |
| 123 | wavecode_3_bAdditive=0 |
| 124 | wavecode_3_scaling=1.00000 |
| 125 | wavecode_3_smoothing=0.50000 |
| 126 | wavecode_3_r=1.000 |
| 127 | wavecode_3_g=1.000 |
| 128 | wavecode_3_b=1.000 |
| 129 | wavecode_3_a=1.000 |
| 130 | shapecode_0_enabled=1 |
| 131 | shapecode_0_sides=100 |
| 132 | shapecode_0_additive=0 |
| 133 | shapecode_0_thickOutline=0 |
| 134 | shapecode_0_textured=0 |
| 135 | shapecode_0_num_inst=1 |
| 136 | shapecode_0_x=0.500 |
| 137 | shapecode_0_y=0.500 |
| 138 | shapecode_0_rad=0.40031 |
| 139 | shapecode_0_ang=0.00000 |
| 140 | shapecode_0_tex_ang=0.00000 |
| 141 | shapecode_0_tex_zoom=1.00000 |
| 142 | shapecode_0_r=0.500 |
| 143 | shapecode_0_g=0.500 |
| 144 | shapecode_0_b=0.000 |
| 145 | shapecode_0_a=1.000 |
| 146 | shapecode_0_r2=0.500 |
| 147 | shapecode_0_g2=0.000 |
| 148 | shapecode_0_b2=0.000 |
| 149 | shapecode_0_a2=0.000 |
| 150 | shapecode_0_border_r=1.000 |
| 151 | shapecode_0_border_g=1.000 |
| 152 | shapecode_0_border_b=0.500 |
| 153 | shapecode_0_border_a=0.000 |
| 154 | shape_0_per_frame1=sounds=(bass+treb+mid)/3; |
| 155 | shape_0_per_frame2= |
| 156 | shape_0_per_frame3=rad=rad*sounds*0.6; |
| 157 | shape_0_per_frame4= |
| 158 | shape_0_per_frame5=r=r+sin(bass)*g; |
| 159 | shape_0_per_frame6=g=g+sin(mid)*g; |
| 160 | shape_0_per_frame7= |
| 161 | shape_0_per_frame8= |
| 162 | shape_0_per_frame9=x=x+0.207*cos(time*bass*0.1); |
| 163 | shape_0_per_frame10=y=y+0.207*sin(time*bass*0.1); |
| 164 | shapecode_1_enabled=1 |
| 165 | shapecode_1_sides=100 |
| 166 | shapecode_1_additive=0 |
| 167 | shapecode_1_thickOutline=0 |
| 168 | shapecode_1_textured=0 |
| 169 | shapecode_1_num_inst=1 |
| 170 | shapecode_1_x=0.500 |
| 171 | shapecode_1_y=0.500 |
| 172 | shapecode_1_rad=0.13465 |
| 173 | shapecode_1_ang=0.00000 |
| 174 | shapecode_1_tex_ang=0.00000 |
| 175 | shapecode_1_tex_zoom=1.00000 |
| 176 | shapecode_1_r=1.000 |
| 177 | shapecode_1_g=0.000 |
| 178 | shapecode_1_b=0.000 |
| 179 | shapecode_1_a=1.000 |
| 180 | shapecode_1_r2=1.000 |
| 181 | shapecode_1_g2=1.000 |
| 182 | shapecode_1_b2=0.000 |
| 183 | shapecode_1_a2=0.300 |
| 184 | shapecode_1_border_r=1.000 |
| 185 | shapecode_1_border_g=1.000 |
| 186 | shapecode_1_border_b=1.000 |
| 187 | shapecode_1_border_a=0.000 |
| 188 | shape_1_per_frame1= |
| 189 | shape_1_per_frame2=g2=g2+0.09*sin((treb+mid)*1.23); |
| 190 | shape_1_per_frame3=g=g+0.09*cos((bass+mid)*1.37); |
| 191 | shape_1_per_frame4= |
| 192 | shape_1_per_frame5=sounds=(bass+mid+treb)/3; |
| 193 | shape_1_per_frame6= |
| 194 | shape_1_per_frame7=rad=rad*(treb+mid)/3; |
| 195 | shape_1_per_frame8= |
| 196 | shape_1_per_frame9=x=x+0.300*sin(time*bass); |
| 197 | shape_1_per_frame10=y=y+0.317*cos(time*bass); |
| 198 | shapecode_2_enabled=1 |
| 199 | shapecode_2_sides=100 |
| 200 | shapecode_2_additive=0 |
| 201 | shapecode_2_thickOutline=0 |
| 202 | shapecode_2_textured=0 |
| 203 | shapecode_2_num_inst=1 |
| 204 | shapecode_2_x=0.500 |
| 205 | shapecode_2_y=0.500 |
| 206 | shapecode_2_rad=0.20047 |
| 207 | shapecode_2_ang=0.00000 |
| 208 | shapecode_2_tex_ang=0.00000 |
| 209 | shapecode_2_tex_zoom=1.00000 |
| 210 | shapecode_2_r=1.000 |
| 211 | shapecode_2_g=1.000 |
| 212 | shapecode_2_b=1.000 |
| 213 | shapecode_2_a=1.000 |
| 214 | shapecode_2_r2=0.500 |
| 215 | shapecode_2_g2=0.500 |
| 216 | shapecode_2_b2=1.000 |
| 217 | shapecode_2_a2=0.000 |
| 218 | shapecode_2_border_r=1.000 |
| 219 | shapecode_2_border_g=1.000 |
| 220 | shapecode_2_border_b=0.500 |
| 221 | shapecode_2_border_a=0.000 |
| 222 | shape_2_per_frame1=sounds=(bass+treb+mid)/3; |
| 223 | shape_2_per_frame2=att=(bass_att+treb_att+mid_att)/3; |
| 224 | shape_2_per_frame3=att=(bass_att+treb_att+mid_att)/3; |
| 225 | shape_2_per_frame4=r2=r2+(0.25*sin(time*6.28))-bass; |
| 226 | shape_2_per_frame5=g2=g2+(0.25*sin(time*6.28))-bass; |
| 227 | shape_2_per_frame6= |
| 228 | shape_2_per_frame7=rad=rad; |
| 229 | shape_2_per_frame8=x=x+0.217*cos(time*2.3)+sounds*0.1; |
| 230 | shape_2_per_frame9=y=y+0.217*sin((time*3.5)+(sounds*0.3)); |
| 231 | shapecode_3_enabled=0 |
| 232 | shapecode_3_sides=4 |
| 233 | shapecode_3_additive=0 |
| 234 | shapecode_3_thickOutline=0 |
| 235 | shapecode_3_textured=0 |
| 236 | shapecode_3_num_inst=1 |
| 237 | shapecode_3_x=0.500 |
| 238 | shapecode_3_y=0.500 |
| 239 | shapecode_3_rad=0.10000 |
| 240 | shapecode_3_ang=0.00000 |
| 241 | shapecode_3_tex_ang=0.00000 |
| 242 | shapecode_3_tex_zoom=1.00000 |
| 243 | shapecode_3_r=1.000 |
| 244 | shapecode_3_g=0.000 |
| 245 | shapecode_3_b=0.000 |
| 246 | shapecode_3_a=1.000 |
| 247 | shapecode_3_r2=0.000 |
| 248 | shapecode_3_g2=1.000 |
| 249 | shapecode_3_b2=0.000 |
| 250 | shapecode_3_a2=0.000 |
| 251 | shapecode_3_border_r=1.000 |
| 252 | shapecode_3_border_g=1.000 |
| 253 | shapecode_3_border_b=1.000 |
| 254 | shapecode_3_border_a=0.100 |
| 255 | per_frame_init_1=mv_x=64;mv_y=48; |
| 256 | per_frame_init_2=nut=0; |
| 257 | per_frame_init_3=stp=0;stq=0; |
| 258 | per_frame_init_4=rtp=0;rtq=0; |
| 259 | per_frame_init_5=wvr=0; |
| 260 | per_frame_init_6=decay=0; |
| 261 | per_frame_init_7=dcsp=0; |
| 262 | per_frame_init_8=warp=0 |
| 263 | per_frame_init_9= |
| 264 | per_frame_1=//krash's beat detection code |
| 265 | per_frame_2=volume = 0.3*(bass+mid+att); |
| 266 | per_frame_3=beatrate = equal(beatrate,0) + (1-equal(beatrate,0))*(below(volume,0.01) + (1-below(volume,0.01))*beatrate); |
| 267 | per_frame_4=lastbeat = lastbeat + equal(lastbeat,0)*time; |
| 268 | per_frame_5=meanbass_att = 0.1*(meanbass_att*9 + bass_att); |
| 269 | per_frame_6=peakbass_att = max(bass_att,peakbass_att); |
| 270 | per_frame_7=beatrate = max(if(beat,if(below(time-lastbeat,2*beatrate),0.1*(beatrate*9 + time - lastbeat),beatrate),beatrate),0.1); |
| 271 | per_frame_8=peakbass_att = beat*bass_att + (1-beat)*peakbass_att*(above(time - lastbeat, 2*beatrate)*0.95 + (1-above(time - lastbeat, 2*beatrate))*0.995); |
| 272 | per_frame_9=lastbeat = beat*time + (1-beat)*lastbeat; |
| 273 | per_frame_10=peakbass_att = max(peakbass_att,1.1*meanbass_att); |
| 274 | per_frame_11=beat = above(volume,0.8)*below(peakbass_att - bass_att, 0.05*peakbass_att)*above(time - lastbeat, 0.1 + 0.5*(beatrate - 0.1)); |
| 275 | per_frame_12=beatcounter = beatcounter + beat; |
| 276 | per_frame_13=mode = if(beat*equal(beatcounter%2,0),1-mode,mode); |
| 277 | per_frame_14=flip = 2*mode-1; |
| 278 | per_frame_15=monitor=flip; |
| 279 | per_frame_16=q8=flip; |
| 280 | per_frame_17= |
| 281 | per_frame_18= |
| 282 | per_frame_19=decay=1; |
| 283 | per_frame_20=//zoom=1.002; |
| 284 | per_frame_21= |
| 285 | per_frame_22=vol=(bass_att+mid_att+treb_att)*0.25; |
| 286 | per_frame_23=vol=vol*vol; |
| 287 | per_frame_24=mtime=mtime+vol*0.05*flip; |
| 288 | per_frame_25= |
| 289 | per_frame_26=q1=mtime*0.3; |
| 290 | per_frame_27=q2=flip; |
| 291 | per_frame_28= |
| 292 | per_frame_29=musictime=musictime+(mid*mid*mid*mid)*0.01*flip; |
| 293 | per_frame_30= |
| 294 | per_frame_31=xpos=sin(musictime*0.6)*0.3; |
| 295 | per_frame_32=ypos=sin(musictime*0.4)*0.3; |
| 296 | per_frame_33=q4=xpos; |
| 297 | per_frame_34=q5=ypos; |
| 298 | warp_1=`shader_body |
| 299 | warp_2=`{ |
| 300 | warp_3=` float2 uv2 = lerp(uv_orig, uv, 0.2); |
| 301 | warp_4=` |
| 302 | warp_5=` // diffused version: |
| 303 | warp_6=` float ss = 0.3; |
| 304 | warp_7=` float3 blur = 0.25*( |
| 305 | warp_8=` tex2D(sampler_main, uv2+ss*texsize.zw*float2( 1, 1)).xyz + |
| 306 | warp_9=` tex2D(sampler_main, uv2+ss*texsize.zw*float2(-1, 1)).xyz + |
| 307 | warp_10=` tex2D(sampler_main, uv2+ss*texsize.zw*float2( 1,-1)).xyz + |
| 308 | warp_11=` tex2D(sampler_main, uv2+ss*texsize.zw*float2(-1,-1)).xyz |
| 309 | warp_12=` ); |
| 310 | warp_13=` |
| 311 | warp_14=` // diffusion: |
| 312 | warp_15=` ret = tex2D(sampler_main,uv2);//blur; |
| 313 | warp_16=` |
| 314 | warp_17=` float F2 = 0.035; |
| 315 | warp_18=` float k2 = 0.060; |
| 316 | warp_19=` float s = 0.025; |
| 317 | warp_20=` float scale = 9; |
| 318 | warp_21=` |
| 319 | warp_22=` // reaction: |
| 320 | warp_23=` float3 z = ret; |
| 321 | warp_24=` float uvv = ret.x*ret.y*ret.y; |
| 322 | warp_25=` z.x += (-uvv + F2*(1-ret.x) + 0.0007)*scale; |
| 323 | warp_26=` z.y += (uvv - (F2+k2)*ret.y)*scale; |
| 324 | warp_27=` //z.x += s*(16-ret.x*ret.y); |
| 325 | warp_28=` //z.y += s*(ret.x*ret.y - ret.y - ret.z); |
| 326 | warp_29=` z.z -= 0.02; |
| 327 | warp_30=` |
| 328 | warp_31=` // apply laplacian: |
| 329 | warp_32=` z.x += (blur - GetPixel(uv2))*0.2*scale; |
| 330 | warp_33=` |
| 331 | warp_34=` ret = z; |
| 332 | warp_35=` //ret *= 0.98 + 0.02*saturate( (0.75 - rad )*10 ); |
| 333 | warp_36=` //ret *= 0.99; |
| 334 | warp_37=` |
| 335 | warp_38=` // add noise: |
| 336 | warp_39=` ret.x += 0.09*(tex2d(sampler_noise_lq, uv*texsize.xy*texsize_noise_lq.zw + rand_frame.xy).xyz*2-1); |
| 337 | warp_40=` |
| 338 | warp_41=` // darken (decay) over time |
| 339 | warp_42=` //ret = (ret - 0.002)*0.99; |
| 340 | warp_43=`} |
| 341 | comp_1=`shader_body |
| 342 | comp_2=`{ |
| 343 | comp_3=` |
| 344 | comp_4=`//I'm too lazy to use a custom float here... |
| 345 | comp_5=`rand_preset = float4(q6,q7,q8,q9); |
| 346 | comp_6=` |
| 347 | comp_7=`// coloration of the red color channel |
| 348 | comp_8=`ret = float3(1,1,1)*GetBlur3(uv).x; |
| 349 | comp_9=`ret = lerp( ret, rand_preset.yzx, GetBlur2(uv).x*2); |
| 350 | comp_10=`ret = lerp( ret, max(rand_preset.yxz*2,1), GetBlur1(uv).x*0.5); |
| 351 | comp_11=`ret = lerp( ret, -0.1*rand_preset.zwy, GetPixel(uv).x); |
| 352 | comp_12=` |
| 353 | comp_13=`//spinning uv coordinates! (q2/3 are sin/cos calculations) |
| 354 | comp_14=`float2 uv2 = uv-.5; |
| 355 | comp_15=`uv2 = float2((uv2.x)*q3 - (uv2.y) * q2,(uv2.x)* q2 + (uv2.y) * q3)+.5; |
| 356 | comp_16=` |
| 357 | comp_17=`//adding some plasticity |
| 358 | comp_18=`float2 d = texsize.zw*4; |
| 359 | comp_19=`float1 dx = ( GetBlur1(uv2+float2(1,0)*d)-GetBlur1(uv2-float2(1,0)*d) ).y; |
| 360 | comp_20=`float1 dy = ( GetBlur1(uv2+float2(0,1)*d)-GetBlur1(uv2-float2(0,1)*d) ).y; |
| 361 | comp_21=`float2 uv_y = uv2+float2(dx,dy)*0.4; |
| 362 | comp_22=` |
| 363 | comp_23=`//coloration of the green color channel |
| 364 | comp_24=`ret = lerp(ret,float3(.8,.8,.8),tex2D(sampler_main,uv_y).y); |
| 365 | comp_25=`ret = lerp( ret, rand_preset, GetBlur2(uv2).y*2); |
| 366 | comp_26=`ret = lerp( ret, max(rand_preset*2,1.2), GetBlur1(uv_y).y*0.5); |
| 367 | comp_27=`ret = lerp( ret, -.01*rand_preset.xyw, GetPixel(uv2).y); |
| 368 | comp_28=` |
| 369 | comp_29=`//enable to check the warp shader |
| 370 | comp_30=`//ret = GetPixel(uv); |
| 371 | comp_31=`} |